//
//  WYXPizzaStore.m
//  FactoryMethodPattern
//
//  Created by 颖 on 2016/12/27.
//  Copyright © 2016年 ying. All rights reserved.
//

#import "WYXPizzaStore.h"
#import "WYXPizza.h"

@implementation WYXPizzaStore

- (WYXPizza *)orderPizza:(PizzaType)type{
    
    WYXPizza *piz = [self creatPizza:type];
    [piz prepare];
    [piz bake];
    [piz cut];
    [piz box];
    
    return piz;
}

- (WYXPizza *)creatPizza:(PizzaType)type{
    return nil;
}

@end
